package com.example.aerospacemanagementsystem.service.logisticsService.impl.impl;


import com.example.aerospacemanagementsystem.entity.basic.Menu;
import com.example.aerospacemanagementsystem.entity.logistics.Safety;
import com.example.aerospacemanagementsystem.mapper.basicMapper.MenuMapper;
import com.example.aerospacemanagementsystem.mapper.logisticsMapper.SafetyMapper;
import com.example.aerospacemanagementsystem.service.logisticsService.impl.SafetyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李铭
* @description 针对表【safety】的数据库操作Service实现
* @createDate 2023-11-03 10:30:47
*/
@Service
public class SafetyServiceImpl implements SafetyService{
    @Autowired
    private SafetyMapper safetyMapper;

    @Override
    public int add(Safety safety) {
        return safetyMapper.insert(safety);
    }

    @Override
    public int delete(Safety safety) {
        return safetyMapper.delete(safety);
    }

    @Override
    public int update(Safety safety) {
        return safetyMapper.update(safety);
    }

    @Override
    public List<Safety> getAllSafety(Safety safety) {
        return safetyMapper.getAllSafety(safety);
    }

}




